﻿using Newtonsoft.Json;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 生产单更改审批流程 主表
    /// </summary>
    [SugarTable("POCAPHDetail")]
    public class POCAPHDetail : BaseLine
    {
        /// <summary>
        /// PWS号
        /// </summary>
        public string PWSCode { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 物料描述
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 批号
        /// </summary>
        public string LotNumber { get; set; }

        /// <summary>
        /// 项目
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 项目类型
        /// </summary>
        public string ProductType { get; set; }

        /// <summary>
        /// 工序
        /// </summary>
        public string WorkProcedure { get; set; }

        /// <summary>
        /// 工厂
        /// </summary>
        public string Factory { get; set; }

        /// <summary>
        /// 原组件
        /// </summary>
        public string OriginalAssembly { get; set; }

        /// <summary>
        /// 原组件描述
        /// </summary>
        public string OriginalDescribe { get; set; }

        /// <summary>
        /// 组件
        /// </summary>
        public string Assembly { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Describe { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 原始数量
        /// </summary>
        public string OriginalNumber { get; set; }

        /// <summary>
        /// 调整数量
        /// </summary>
        public string AdjustNumber { get; set; }

        /// <summary>
        /// 调整后数量
        /// </summary>
        public string AdjustedNumber { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 需求量
        /// </summary>
        public string Requirement { get; set; }

        /// <summary>
        /// 替代组
        /// </summary>
        public string OverrideGroup { get; set; }

        /// <summary>
        /// 替代百分比
        /// </summary>
        public string Percentage { get; set; }

        ///// <summary>
        ///// 同步结果
        ///// </summary>
        //public bool SyncResult { get; set; }

        ///// <summary>
        ///// 同步信息
        ///// </summary>
        //public string Message { get; set; }

        /// <summary>
        /// 申请人备注
        /// </summary>
        public string ApplyRemark { get; set; }

        /// <summary>
        /// 审批人备注
        /// </summary>
        public string ApprovalRemark { get; set; }




        /// <summary>
        /// PWS单批量
        /// </summary>
        public string BatchNumber { get; set; }

        /// <summary>
        /// PWS单批量（新）
        /// </summary>
        public string NewBatchNumber { get; set; }


        /// <summary>
        /// 输入数量
        /// </summary>
        public string InputNumber { get; set; }

        /// <summary>
        /// 最终数量
        /// </summary>
        public string CalcNumber { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string ItemUnit { get; set; }

        /// <summary>
        /// 库位
        /// </summary>
        public string StorageLocation { get; set; }

        /// <summary>
        /// 组件批次
        /// </summary>
        public string ItemBatch { get; set; }

        /// <summary>
        /// 1 原组件，2 新增原组件 3新增固定组件
        /// </summary>
        public string ItemType { get; set; }

        /// <summary>
        /// 1 数量锁定
        /// </summary>
        public string AssemblyType { get; set; }

        /// <summary>
        /// 最终数量之和
        /// </summary>
        public string TotalNumber { get; set; }
    }
}
